package prototype.economy.jpk;

import java.util.HashSet;

public class Market {
  
  private final ItemDB mdb;
  private HashSet<Contract> contracts = new HashSet<Contract>();
  
  public Market(ItemDB mdb, HashSet<Contract> contracts) {
    super();
    this.mdb = mdb;
    this.contracts = contracts;
  }

  public HashSet<Contract> getContracts() {
    return contracts;
  }
  
  public void addContract(Contract contract) {
    this.contracts.add(contract);
  }
  
  public void addContracts(HashSet<Contract> contracts) {
    this.contracts.addAll(contracts);
  }

  public ItemDB getMdb() {
    return mdb;
  }
  
}